﻿#include <QtWidgets/QApplication>
#include <QtCore/QCoreApplication>
#include <QDebug>
#include <QStyleFactory>

#include <vtkMultiProcessController.h>

#include "MainWindow/QtNetSafeToolWindow.h"

#include <vtkAutoInit.h>
VTK_MODULE_INIT(vtkRenderingOpenGL2);
VTK_MODULE_INIT(vtkInteractionStyle);



int main(int argc, char* argv[])
{
    //设置为Windows样式
    QApplication::setStyle(QStyleFactory::create("Windows"));

    //初始化opengl    
    QApplication::setAttribute(Qt::AA_UseDesktopOpenGL);

    //高dpi屏幕适配
    QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
    //QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);

    //创建app
    QApplication app(argc, argv);

    //创建主窗口
    QtNetSafeToolWindow mainWidow;
    mainWidow.show();

    return app.exec();
}
